﻿using System;
using System.Collections.Generic;
using System.Text;

namespace designmodule.constructionmodule.Prototype
{
    public abstract class Prototype
    {
        public string Id { get; private set; }

        protected Prototype(string id)
        {
            Id = id;
        }

        public abstract Prototype Clone();
    }

    public class ConcretePrototype1:Prototype
    {
        public ConcretePrototype1(string id) : base(id)
        {
        }

        public override Prototype Clone()
        {
            return (Prototype)this.MemberwiseClone();

        }
    }
}
